package org.dschini.ui.maps.world.southamerica {

	import flash.display.Sprite;
	import org.dschini.ui.maps.*;

	public class TrinidadAndTobagoMap extends Map
	{
		public var trinidadAndTobagoMapStateLines:Sprite;
		public var trinidadAndTobagoMapShape:Sprite;
		
		override public function set mouseEnabled( mouseEnabled:Boolean ):void
		{
			super.mouseEnabled = mouseEnabled;
			trinidadAndTobagoMapShape.mouseEnabled = mouseEnabled;
			trinidadAndTobagoMapStateLines.mouseEnabled = mouseEnabled;
		}
		
		override public function set doubleClickEnabled( doubleClickEnabled:Boolean ):void
		{
			super.doubleClickEnabled = doubleClickEnabled;
			trinidadAndTobagoMapShape.doubleClickEnabled = doubleClickEnabled;
			trinidadAndTobagoMapStateLines.doubleClickEnabled = doubleClickEnabled;
		}
		
		override public function render():void
		{
			trinidadAndTobagoMapShape.visible = data.shapeVisible ? true : false;
			if( data.shapeColorTransform ){
				trinidadAndTobagoMapShape.transform.colorTransform = data.shapeColorTransform;
			}
			trinidadAndTobagoMapStateLines.visible = data.stateLinesVisible ? true : false;
			if( data.stateLinesColorTransform ){
				trinidadAndTobagoMapStateLines.transform.colorTransform = data.stateLinesColorTransform;
			}
		}
	}	
}
